package com.mi.system.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Dict item VO
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/3 9:31
 */
@ApiModel(value = "DictItemVO对象", description = "字典项信息")
@Data
public class DictItemVO implements Serializable {

    @ApiModelProperty(value = "字典项ID", required = true, dataType = "java.lang.String")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "字典类型ID", required = true, dataType = "java.lang.String")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dictId;

    @ApiModelProperty(value = "数据值", required = true)
    private String value;

    @ApiModelProperty(value = "标签", required = true)
    private String label;

    @ApiModelProperty(value = "字典类型", required = true)
    private String type;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("排序值")
    private Integer sort;

    @ApiModelProperty("备注信息")
    private String remarks;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
